package com.usian.admin.service;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;

public interface AdChannelService {
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    public ResponseResult save(AdChannel adChannel);

    public ResponseResult findById(Integer id);

    /**
     * 根据id修改对应频道信息
     * @param adChannel
     * @return
     */
    public ResponseResult update(AdChannel adChannel);

    /**
     * 根据id 删除数据
     * @param id
     * @return
     */

    public ResponseResult delete(Integer id);

    /**
     * 根据id批量删除
     * @param ids
     * @return
     */
    public ResponseResult deletes(Integer[] ids);
    /**
     * 查询全部
     * @return
     */
    public ResponseResult findAll();

}
